$(document).ready(function () {
    var username=$("#username").val();

    $.ajax({
        url : "/user/searchUser?username="+username,     //后台请求的数据
        async : true,                   //是否异步请求
        success : function(data) {      //如果请求成功，返回数据。
            $("#myMsg").text(data.name);
            $("#my_msg").attr("href","/user/profile?username="+data.username);
            $("#reginfonow").attr("href","/user/reginfonow?username="+data.username+"&name="+data.name);
            $("#reginfobef").attr("href","/user/reginfobef?username="+data.name);
            $("#iframe").attr("src","/user/profile?username="+data.username);
        },
    });
    document.getElementsByTagName('body')[0].style.height = window.innerHeight+'px';

});
